﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Database.Models
{
    [Table("LoaiHinhHoatDongCoSo")]
    public sealed class LoaiHinhHoatDongCoSo : BaseModel
    {
        public LoaiHinhHoatDongCoSo()
        {
            PhieuDieuTraCoSoes = new HashSet<PhieuDieuTraCoSo>();
        }

        public int Id { get; set; }

        [Required]
        [MaxLength(255)]
        public string Ma { get; set; }

        [Required]
        [MaxLength(255)]
        public string Ten { get; set; }

        public ICollection<PhieuDieuTraCoSo> PhieuDieuTraCoSoes { get; set; }
    }
}